<%= div_if notice, class: "alert alert-dismissable alert-success" do %>
  <button type="button" class="close" data-dismiss="alert">×</button>
  <%= notice %>
<% end %>

<p>
  <strong>Subject:</strong>
  <%= @promotion_mail.subject %>
</p>

<p>
  <strong>Draft:</strong>
  <%= @promotion_mail.draft? %>
</p>

<p>
  <strong>Deleted:</strong>
  <%= @promotion_mail.deleted? %>
</p>

<p>
  <strong>Status:</strong>
  <%= @promotion_mail.status.humanize %>
</p>

<p>
  <strong>Created by:</strong>
  <%= @promotion_mail.created_by.name_or_email %>
</p>

<p>
  <strong>Delivered by:</strong>
  <%= @promotion_mail.delivered_by %>
</p>

<%= link_to 'Edit', edit_promotion_mail_path(@promotion_mail) %> |
<%= link_to 'Back', promotion_mails_path %>

<div class="jumbotron">
  <iframe src="<%= view_promotion_mail_path(@promotion_mail, t: Time.current.to_s) %>" style="width: 100%; height: 1200px;">
  </iframe>
</div>